#ifndef _CYS_CFG_DEPEND_H_
#define _CYS_CFG_DEPEND_H_

extern volatile unsigned char flash_flag;

int set_val_u8(unsigned char   val, unsigned char* cfg);
int set_val_u16(unsigned short  val, unsigned short* cfg);
int set_val_u32(unsigned int  val, unsigned int* cfg);
int set_val_array(unsigned char* array, unsigned char* cfg, unsigned char len);

int str2ip(const char *str, unsigned char *ip, unsigned char len);
int str2mac(const char *str, unsigned char *ip, unsigned char len);

int _set_ip(const char* str, unsigned char *cfg);
int _set_6bytes_mac(const char* str, unsigned char *cfg);

#endif 

